﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Hi_Baidu.Plugin
{
    /// <summary>
    ///     网络插件基类
    /// </summary>
    public abstract class NetworkPlugin : Plugin,INetworkPlugin
    {
        /// <summary>
        ///     得到插件类别
        /// </summary>
        /// <returns>返回插件类别</returns>
        public override Plugin.PLUGIN_TYPE GetPluginType()
        {
            return PLUGIN_TYPE.NETWORK_PLUGIN;
        }

        #region INetworkPlugin 成员

        public abstract Hi_Baidu.Packet.IParser GetParser();
        public abstract Hi_Baidu.Packet.Protocol.NetworkProtocol GetNetworkProtocol();
        public abstract Hi_Baidu.Packet.IPacketListener GetPacketListener();

        #endregion
    }
}
